﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;                                       
using System.Text;
using System.Threading.Tasks;
using Sripirom.ATS.Core.Messaging;

namespace Sripirom.ATS.Services.API.FundTransfer.Messages
{
    [MessageContract(WrapperNamespace = "http://www.kiatnakinbank.com/services/ATS/IFundTransferService/FundTransfer/ResponseMessage")]
    public class FundTransferResponse : ChannelResponse, IChannelReply
    {

        private FundTransferBodyResponse _body;
        private MessageOutput _output;
        public FundTransferResponse()
        {
            _body = new FundTransferBodyResponse();
            _output = new MessageOutput();
        }

        [MessageBodyMember(Name = "Body", Namespace = "http://www.kiatnakinbank.com/services/ATS/IFundTransferService/FundTransfer/ResponseMessage/Body")]
        public FundTransferBodyResponse Body { get { return _body; } set { _body = value; } }

        [MessageBodyMember(Name = "Output", Namespace = "http://www.kiatnakinbank.com/services/ATS/IFundTransferService/FundTransfer/ResponseMessage/Output")]
        public MessageOutput Output { get { return _output; } set { _output = value; } } 
    }


    #region ====== Body Contract ============================================================================================================
    [DataContract(Name = "Body", Namespace = "http://www.kiatnakinbank.com/services/ATS/IFundTransferService/FundTransfer/ResponseMessage/Body")]
    public class FundTransferBodyResponse
    {
        [DataMember(Order = 1)]
        public String TransactionId { get; set; }
        [DataMember(Order = 2)]
        public String EffectiveDate { get; set; }
        [DataMember(Order = 3)]
        public String RecivedDate { get; set; }
        [DataMember(Order = 4)]
        public String RecivedTime { get; set; }
 
 
        public FundTransferBodyResponse()
        {
        }
    }


    #endregion ==========================================================================================================================

}
